package com.mjf.cjt.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * desc
 * </p>
 *
 * @author chenshoumeng
 * @date 2025/7/27 16:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProductReceiveCreateVO {


    private String externalCode;  // 外部单据号

    private String voucherTypeCode;  // 单据类型编码

    private LocalDate voucherDate;  // 完工日期

    private String busiTypeCode;  // 业务类型编码

    private String rdStyleCode;  // 出入库类别编码

    private String warehouseCode;  // 仓库编码

    private List<Details> details;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class Details {
        private String rowCode; // 行号 1开始自增
        private String inventoryCode;  // 产品编码

        private BigDecimal quantity;  // 数量
    }


}
